<fieldset>
<legend>View Product</legend>
    <dl>
        <dt>Images</dt>
        <?php 
                if(is_null($product['Product']['image']) || $product['Product']['image']=="")
                    {$product['Product']['image']="nemletezik.jpg";}
        ?>
        <td><?php echo $html->image('product/'.$product['Product']['image']); ?></td>
        <dt>Name</dt>
        <dd><?php echo $product['Product']['product_name']; ?>&nbsp;</dd>
        <dt>Description</dt>
        <dd><?php echo nl2br($product['Product']['description']); ?>&nbsp;</dd>
    </dl>
</fieldset>

<?php
    echo $form->create("Product",array('action'=>'view/'.$product['Product']['id']));
?>
<fieldset>
    <legend>Cart</legend>
<?php
    echo $form->hidden("id");
    echo $form->input("size_id");
    echo $form->input("quantity");
    echo $form->end("Add to cart");
?>
</fieldset>

<h3>Sizes</h3>
<fieldset>
<legend>Sizes</legend>
<?php if(!empty($product['Size'])): ?>
    <?php foreach($product['Size'] as $size):?>
        <dl>
            <td><b><?php echo $size['value']; ?></b>:</td>
            <dd><?php echo $size['price']; ?></dd>
        </dl>
    <?php endforeach;?>
<?php endif;?>
</fieldset>